package index;

public class User {
    //标准的javaBean
    /*
    * 1.构造方法:(空参构造方法,带全部参数的构造方法)
    * 2.属性 (私有化  ){set()/get()}
    * 3.方法 (包含每一个行为)
    * */
    public User() {
    }

    public User(String phoneNumber, String veriFicationCode, String passWord, String hobby, String gender) {
        this.phoneNumber = phoneNumber;
        this.VeriFicationCode = veriFicationCode;
        this.passWord = passWord;
        this.hobby = hobby;
        this.gender = gender;
    }

    //1.表单的属性
    //1.手机号
    private  String phoneNumber;
    //2.验证码
    private  String VeriFicationCode; 
    //3密码
    private  String passWord;
    //4.爱好
    private  String hobby;
    //5.性别
    private  String gender;

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;

    }

    public String getVeriFicationCode() {
        return VeriFicationCode;
    }

    public void setVeriFicationCode(String veriFicationCode) {
        this.VeriFicationCode = veriFicationCode;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }
    public void sendCode(){
        System.out.println("验证码已发送");
    }
    public void register(){
        System.out.println("注册中");
        System.out.println("注册完成");
    }
    public void login(){
        System.out.println("登录成功");
    }

    @Override
    public String toString() {
        return "User{" +
                "phoneNumber='" + phoneNumber + '\'' +
                ", VeriFicationCode='" + VeriFicationCode + '\'' +
                ", passWord='" + passWord + '\'' +
                ", hobby='" + hobby + '\'' +
                ", gender='" + gender + '\'' +
                '}';
    }
}
